/* 
 * File:   JClientSVN.cpp
 * Author: johnneyshi
 * 
 * Created on 2013年5月18日, 下午4:24
 */

#include "JClientSVN.h"
#include "JSVNSock_Stream_InterConversion.h"
#include "JRepositoryConfig.h"

JClientSVN::JClientSVN()
{
    Connect("127.0.0.1",5000);
}


JClientSVN::~JClientSVN() 
{
}

void JClientSVN::Send()
{
    //读取文件，写入fd中
    JSVNSock_Stream_InterConversion::StreamToSock(this->GetConnFd(),JRepositoryConfig::clientOutTempStreamFileName);
}

void JClientSVN::Recv()
{
    JSVNSock_Stream_InterConversion::SockToStream(this->GetConnFd(),JRepositoryConfig::clientInTempStreamFileName);
}